package com.maykk.stu_manager.global;

/**
 * @ClassName: User
 * @Description: TODO 用户类
 * @Author: MaykkStar@163.com
 */
public class User {
    private String username;
    private String passwd;
    private Integer type;

    public User() {
    }

    public User(String username, String passwd) {
        this.username = username;
        this.passwd = passwd;
    }

    public User(String username, String passwd, int type) {
        this.username = username;
        this.passwd = passwd;
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", passwd='" + passwd + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
